package com.mttest.hotwords.service.impl;

import com.mttest.hotwords.dao.HotWordInfoMapper;
import com.mttest.hotwords.entity.HotWordInfo;
import com.mttest.hotwords.service.ManageService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author sunqy
 * @description
 * @create 2020-09-01 22:02
 */
@Service
public class ManageServiceImpl implements ManageService {

    @Resource
    private HotWordInfoMapper hotWordInfoMapper;

    /**
     * 运营设置热词及排序
     * @param hotWordInfoList
     * @return
     */
    @Override
    public int setHotWordInfoForeach(List<HotWordInfo> hotWordInfoList) {
        return hotWordInfoMapper.insertForeach(hotWordInfoList);
    }
}
